Trivial formatting fixes
authorMatthias Clasen <mclasen@redhat.com>
Sun, 12 Oct 2014 03:17:34 +0000 (23:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 13 Oct 2014 14:43:32 +0000 (10:43 -0400)
gdk/gdkgl.c
gdk/gdkglcontext.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkx11glcontext.h

index fd871658e71533d54576d1dcdb5b6f8db7e49996..09ee79ebba28bd43c4ef5321362b13465ccb5503 100644 (file)
@@ -38,11 +38,12 @@ gdk_cairo_surface_mark_as_direct (cairo_surface_t *surface,
 /* x,y,width,height describes a rectangle in the gl render buffer
    coordinate space, and its top left corner is drawn at the current
    position according to the cairo translation. */
+
 /**
- * gdk_cairo_draw_from_gl
+ * gdk_cairo_draw_from_gl:
  * @cr: a cairo context
  * @window: The window we're rendering for (not necessarily into)
- * @source: The GL id of the source buffer
+ * @source: The GL ID of the source buffer
  * @source_type: The type of the @source
  * @buffer_scale: The scale-factor that the @source buffer is allocated for
  * @x: The source x position in @source to start copying from in GL coordinates
@@ -50,7 +51,7 @@ gdk_cairo_surface_mark_as_direct (cairo_surface_t *surface,
  * @width: The width of the region to draw
  * @height: The height of the region to draw
  *
- * This is the main way to draw GL content in Gtk+. It takes a render buffer id
+ * This is the main way to draw GL content in GTK+. It takes a render buffer ID 
  * (@source_type == #GL_RENDERBUFFER) or a texture id (@source_type == #GL_TEXTURE)
  * and draws it onto @cr with an OVER operation, respecting the current clip.
  *
@@ -62,6 +63,8 @@ gdk_cairo_surface_mark_as_direct (cairo_surface_t *surface,
  *
  * For #GL_RENDERBUFFER the code will always fall back to software for buffers
  * with alpha components, so make sure you use #GL_TEXTURE if using alpha.
+ *
+ * Since: 3.16
  */
 void
 gdk_cairo_draw_from_gl (cairo_t              *cr,
@@ -374,7 +377,7 @@ gdk_cairo_draw_from_gl (cairo_t              *cr,
 
 void
 gdk_gl_texture_from_surface (cairo_surface_t *surface,
-                            cairo_region_t *region)
+                            cairo_region_t  *region)
 {
   GdkGLContext *current;
   cairo_surface_t *image;
index 5fbd90569f8677e2e2cbf0a6a51a017d99cda3db..ed8a02f5bf2a571605c2a2b549199ec0b8e8d5f0 100644 (file)
  * #GdkGLContext is an object representing the platform-specific
  * OpenGL drawing context.
  *
- * #GdkGLContexts are created for a #GdkWindow using gdk_window_create_gl_context(), and
- * the context will match the GdkVisual of the window.
+ * #GdkGLContexts are created for a #GdkWindow using
+ * gdk_window_create_gl_context(), and the context will match
+ * the #GdkVisual of the window.
  *
  * A #GdkGLContexts is not tied to any particulare normal
  * framebuffer. For instance, it cannot draw to the #GdkWindow back
- * buffer. The gdk repaint system is in full control of the painting
+ * buffer. The GDK repaint system is in full control of the painting
  * to that. Instead you can create render buffers or textures and use
  * gdk_cairo_draw_from_gl() in the draw function of your widget to
- * draw them. Then Gdk will handle the integration of your rendering
+ * draw them. Then GDK will handle the integration of your rendering
  * with that of other widgets.
  *
- * Support for #GdkGLContext is platform specific, context creation can fail, returning
- * a %NULL context.
+ * Support for #GdkGLContext is platform-specific, context creation
+ * can fail, returning %NULL context.
  *
  * A #GdkGLContext has to be made "current" in order to start using
  * it, otherwise any OpenGL call will be ignored.
@@ -46,7 +47,8 @@
  * ## Creating a new OpenGL context ##
  *
  * In order to create a new #GdkGLContext instance you need a
- * #GdkWindow, which you typically get during the realize call of a widget.
+ * #GdkWindow, which you typically get during the realize call
+ * of a widget.
  *
  * ## Using a GdkGLContext ##
  *
@@ -255,7 +257,7 @@ gdk_gl_context_get_visual (GdkGLContext *context)
  * Since: 3.16
  */
 void
-gdk_gl_context_flush_buffer (GdkGLContext *context,
+gdk_gl_context_flush_buffer (GdkGLContext   *context,
                              cairo_region_t *painted,
                              cairo_region_t *damage)
 {
index be187986535d461d74b07d554dd908b542128bbf..1464d9aa95f9afb8e0844aefa7a493e9cc6ddfed 100644 (file)
@@ -882,12 +882,12 @@ gdk_x11_display_make_gl_context_current (GdkDisplay   *display,
  *
  * Returns: %TRUE if GLX is available
  *
- * Since: 3.14
+ * Since: 3.16
  */
 gboolean
 gdk_x11_display_get_glx_version (GdkDisplay *display,
-                                 int        *major,
-                                 int        *minor)
+                                 gint       *major,
+                                 gint       *minor)
 {
   g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
 
index 962231cd9e16d95840b14a6e604b42f79e53210f..5fbf36fcf9190e76f5375246936e06699ceeb140 100644 (file)
@@ -41,8 +41,8 @@ GType gdk_x11_gl_context_get_type (void) G_GNUC_CONST;
 
 GDK_AVAILABLE_IN_3_16
 gboolean        gdk_x11_display_get_glx_version (GdkDisplay *display,
-                                                 int        *major,
-                                                 int        *minor);
+                                                 gint       *major,
+                                                 gint       *minor);
 
 G_END_DECLS